-
Notifications
You must be signed in to change notification settings - Fork 2
chore: refactor httpbin example #101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors the httpbin example configurations by updating the controllerName values, adding a dedicated GatewayProxy resource with infrastructure configuration, and updating service timeout and host rewrite settings.
- Updated controllerName to "gateway.apisix.io/api7-ingress-controller" in multiple example files.
- Introduced a standalone GatewayProxy resource with ControlPlane and AdminKey configuration.
- Added service-specific configurations for timeout and host rewrite.
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| examples/httpbin/service-timeout.yaml | Added BackendTrafficPolicy with timeout settings for the httpbin service. |
| examples/httpbin/service-rewrite-host.yaml | Added BackendTrafficPolicy with passHost rewrite and upstreamHost configuration. |
| examples/httpbin/quickstart.yaml | Updated the controllerName and added a GatewayProxy resource with infrastructure config. |
| examples/httpbin/ingress.yaml | Defined GatewayProxy, IngressClass, and Ingress resources for traffic routing. |
| examples/httpbin/httproute.yaml | Updated the controllerName and added GatewayProxy details in the routing config. |
Comments suppressed due to low confidence (2)
examples/httpbin/quickstart.yaml:64
- Ensure that the updated controllerName is consistent with the configuration expected by the deployed controller across all related example files.
controllerName: "gateway.apisix.io/api7-ingress-controller"
examples/httpbin/httproute.yaml:6
- Verify that this change to the controllerName aligns with the overall configuration, ensuring consistency across the examples.
controllerName: "gateway.apisix.io/api7-ingress-controller"
| metadata: | ||
| name: httpbin | ||
| spec: | ||
| # 解析到 upstream.nodes 当中 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change to eng.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed.
| metadata: | ||
| name: httpbin | ||
| spec: | ||
| # 解析到 upstream.nodes 当中 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed.
Type of change:
What this PR does / why we need it:
Pre-submission checklist: